home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1141 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: engnews1.Eng.Sun.COM!taumet!clamage
  2. From: vandevod@cs.rpi.edu (David Vandevoorde)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Temporary objects in Std
  5. Date: 17 Apr 1996 18:45:53 GMT
  6. Organization: RPI Computer Science
  7. Sender: vandevod@avs.cs.rpi.edu
  8. Approved: clamage@eng.sun.com (comp.std.c++)
  9. Message-ID: <xsospe2vgru.fsf@avs.cs.rpi.edu>
  10. References: <4107cc$101229.223@news>
  11. NNTP-Posting-Host: taumet.eng.sun.com
  12. X-Nntp-Posting-Host: avs.cs.rpi.edu
  13. In-Reply-To: peng@dpg.rnb.com's message of 17 Apr 1996 14:57:29 GMT
  14. X-Newsreader: Gnus v5.1
  15. Content-Length: 318
  16. X-Lines: 20
  17. Originator: clamage@taumet
  18.  
  19. >>>>> "WP" == Wei Peng <peng@dpg.rnb.com> writes:
  20. [...]
  21. WP> void doSomething(const char*);
  22.  
  23. WP> String getString();
  24.  
  25. WP> const char* getCharStar()
  26. WP> {
  27. WP>   return returnString();
  28. WP> }
  29.  
  30. WP> Now if we do:
  31.  
  32. WP>           doSomething(getCharStar());
  33. [...]
  34.  
  35. You'll need to explain what returnString() does...
  36.  
  37.     Daveed
  38.  
  39.  
  40.  
  41. [ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
  42. [ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
  43. [ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
  44. [ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
  45. [ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]
  46.